<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
    <view v-for="(item,index) in list" :key="index">
    <HelloWorld :list="item.sublist">
      <view slot-scope="{data}">{{data.item}}</view>
    </HelloWorld>
    </view>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data(){
    return {
      list:[
        {id:1,sublist:[1,2,3]},
        {id:2,sublist:[1,2,3]},
        {id:3,sublist:[1,2,3]},
      ],
      // sublist:[1,2,3]
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
